package com.toymate.modules.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.toymate.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * IotMessageLog
 *
 * @author weirdor (179946422@qq.com)
 * @version v1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("iot_message_log")
@ApiModel(value = "IotMessageLog对象", description = "IotMessageLog对象")
public class IotMessageLog extends BaseEntity<IotMessageLog> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(name = "消息ID")
    public String messageId;
    @ApiModelProperty(name = "产品ID")
    public String productId;
    @ApiModelProperty(name = "设备ID")
    public String deviceId;
    @ApiModelProperty(name = "音频地址")
    public String messageUrl;
    @ApiModelProperty(name = "内容")
    public String messageContent;
    @ApiModelProperty(name = "序号")
    public Integer sortNum;
    @ApiModelProperty(name = "会话ID")
    public String conversationId;
    @ApiModelProperty(name = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
}
